// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "GameFramework/Pawn.h"
#include "Train.generated.h"

class UCapsuleComponent;
class UCameraComponent;
class UStaticMeshComponent;
class USpringArmComponent;

UCLASS()
class GGJ2021_API ATrain : public APawn
{
	GENERATED_BODY()

public:
	// Sets default values for this pawn's properties
	ATrain();

protected:
	// Called when the game starts or when spawned
	virtual void BeginPlay() override;

	UPROPERTY(VisibleAnyWhere, Category = "Component")
	UCapsuleComponent* CollisionComp;	// 碰撞体

	UPROPERTY(VisibleAnyWhere, Category = "Component")
	UCameraComponent* CameraComp;		// 摄像机

	UPROPERTY(VisibleAnyWhere, Category = "Component")
	UStaticMeshComponent* LMSM;			// 模型

	UPROPERTY(VisibleAnyWhere, Category = "Component")
	USpringArmComponent* SpringArmComp;	// 相机臂
public:	
	// Called every frame
	virtual void Tick(float DeltaTime) override;

	// Called to bind functionality to input
	virtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override;

};
